<{include file="../templates/admin/header.html"}>
<script type="text/javascript" src="js/admin_delete.js">
</script>

<form method="post" action="" name="listForm">
<div class="list-div" id="listDiv">

<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
  <tr>
    <th>分类名称</th>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
    <th>是否显示</th>
    <th>操作</th>
  </tr>
  
  <{foreach from=$category_list item=list}>
  <tr align="center" class="<{$list.lev}>" id="<{$list.lev}>_<{$list.cat_id}>">
    <td align="left" class="first-cell" >

      <{if $cat.is_leaf neq 1}>
      <img src="images/menu_minus.gif" id="icon_<{$list.lev}>_<{$list.cat_id}>" width="9" height="9" border="0" style="margin-left:<{$list.lev}>em" onclick="rowClicked(this)" />
      <{else}>
      <img src="images/menu_arrow.gif" width="9" height="9" border="0" style="margin-left:<{$list.lev}>em" />
      <{/if}>
      
      <span><{$list.cat_name}></span>
    </td>
    <td width="10%"><img src="./images/<{if $list.is_show eq 1}>yes.gif<{else}>no.gif<{/if}>" onclick="rowClicked(this)"/></td>
    <td width="24%" align="center">
      <a href="category.php?act=move&cat_id=<{$list.cat_id}>">转移商品</a> |
      <a href="category.php?act=edit&cat_id=<{$list.cat_id}>">编辑</a> |
      <a href="javascript:;" onclick="remove(this,'category.php?act=delete&id=<{$list.cat_id}>')" title="移除">移除</a>
    </td>
  </tr>
  <{/foreach}>

  </table>
</div>
</form>

</body>
</html>